import { BaseWindow } from "../../../../component/window/BaseWindow";
import { Language } from "../../../../../extend/language/Language";
import { ObjCreate } from "../../common/ObjCreate";
import { SWFInfo } from "../../../../../com/gengine/resource/info/SWFInfo";
import { PageSelecter } from "../../common/pageSelect/PageSelecter";
//class PetSkillHelpWindow
    
    export  class PetSkillHelpWindow extends BaseWindow
    {
        constructor()
        {
            super();
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            var loc1;
            this.setSize(625, 460);
            this.titleHeight = 28;
            this.title = Language.getString(54136);
            ObjCreate.createBg(17, 39, 590, 410, this);
            this._contentSprite = new Object /* flash.display.Sprite */();
            this._contentSprite.x = 20;
            this._contentSprite.y = 45;
            this.addChild(this._contentSprite);
            with ({}) 
            {
            };
            "petskillHelp.swf".load(
#error('pushwith') {}
            , 
#error('pushwith') {}
            .onLoaded = (arg1: SWFInfo): void
            {
                _helpMc = arg1.clip;
                _helpMc.gotoAndStop(1);
                _contentSprite.addChild(_helpMc);
                return;
            })
            this._pageBar = new PageSelecter();
            this._pageBar.mode = PageSelecter.CompleteMode;
            this._pageBar.move(260, 425);
            this._pageBar.maxPage = 4;
            this._pageBar.addEventListener(flash.events.Event.CHANGE, this.onChangeHandler);
            this.addChild(this._pageBar);
            return;
        }

        /* internal  */onBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            return;
        }

        /* internal  */onChangeHandler(arg1: Object /* flash.events.Event */): void
        {
            var loc1=this._pageBar.currentPage;
            this._helpMc.gotoAndStop(loc1);
            return;
        }

        /* internal */ /* var */_contentSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_helpMc: Object /* flash.display.MovieClip */;

        /* internal */ /* var */_pageBar: PageSelecter;
    }
